<?php #coding: utf-8 æ ø å ? ?>

<?
class Rolemaster extends CI_controller {


    function index() {

		$indhold_left[] = 'rolemaster/rm_menu';
		$indhold_right[] = 'forord/titelblad';

		$data['overskrift_left'] = anchor("rolemaster","Rolemaster","class='ink'");
		$data['overskrift_right'] = " ";


		$data['content_left'] = $indhold_left;
		$data['content_right'] = $indhold_right;
		$this->load->view('includes/templates/bogpaapult',$data); // 2 * $indhold
    }


    function downloads() {

		$indhold_left[] = 'rolemaster/rm_menu';
		$indhold_right[] = 'rolemaster/rm_downloads';
		$data['overskrift_left'] = anchor("rolemaster","Rolemaster","class='ink'");
		$data['overskrift_right'] = "Downloads";


		$data['content_left'] = $indhold_left;
		$data['content_right'] = $indhold_right;
		$this->load->view('includes/templates/bogpaapult',$data); // 2 * $indhold
    }

    function skills() {
$this->load->library('table');
        $this->load->model('rolemaster/skill_model');
        $data['skills_by_name'] = $this->skill_model->find_alle_skills('name');
        $data['skills_by_category'] = $this->skill_model->find_alle_skills('category');
//        print_r($alle_skills);

		$indhold_left[] = 'rolemaster/rm_menu';
		$indhold_right[] = 'rolemaster/rm_skill_liste';

		$data['overskrift_left'] = anchor("rolemaster","Rolemaster","class='ink'");
		$data['overskrift_right'] = "Skills";


		$data['content_left'] = $indhold_left;
		$data['content_right'] = $indhold_right;
		$this->load->view('includes/templates/bogpaapult',$data); // 2 * $indhold
    }

}
